#ifndef FILEATTRIBUTEFORM_H
#define FILEATTRIBUTEFORM_H

#include <QDialog>
#include "util/define.h"
#include "datatype/chinaobs.h"
#include "QStandardItemModel"
#include "datatype/database.h"
#include "datatype/franceobs.h"
#include "datatype/psegy.h"
#include "datatype/sac.h"
#include "config/common.h"
#include "config/exportexcelobject.h"
#include "QMessageBox"
#include "QFileDialog"
#include "Config/config.h"
namespace Ui {
    class FileAttributeForm;
}

class FileAttributeForm : public QDialog
{
    Q_OBJECT

public:
    explicit FileAttributeForm(QWidget *parent = 0);
    ~FileAttributeForm();
    DATAFORMAT getDataFormat() const;
    QString getFileName() const;
    void setDataFormat(DATAFORMAT dataFormat);
    void setFileName(QString fileName);

    void chinaObsShow();
    void sacPsegyShow();
    void dataShow();
    void  franceObsShow();
    void setInterval(int interval);

private slots:
    void on_button_first_clicked();
    void on_button_pre_clicked();
    void on_button_next_clicked();
    void on_button_last_clicked();
    void on_pushButton_clicked();

    void on_pushButton_Export_clicked();

private:
    Ui::FileAttributeForm *ui;
    DATAFORMAT dataFormat;
    QString fileName;
    QDateTime startTime;
    LONG startPoint;
    int step;
    DataBase *db;
    LONG pointNum;
    FILE *fp;
    Common *comm;
    float freq;
    int interval;

};

#endif // FILEATTRIBUTEFORM_H
